<?php

use UC_PHP\FileSystem as FS;

$file = FS\FileSystem::open_text_file(
    './test_dir/dir1/file2.txt', FS\IO_Mode::FOR_APPENDING);
$file->write_line('a line');
$file->close();

$file = FS\FileSystem::open_text_file(
    './test_dir/dir1/file2.txt', FS\IO_Mode::FOR_READING);

echo $file->read_all();
